﻿using MCPlatform.MotionLib.Base;
using MCPlatform.MotionLib.Base.AssitantClass;
using Panuon.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace MCPlatform.UI.Controls.Models
{
    public class PointSettingModel : NotifyPropertyChangedBase,INameProvider
    {
        #region Properties

        [Newtonsoft.Json.JsonIgnore]
        public IMotion? MotionEntity { get => _MotionEntity; set => Set(ref _MotionEntity, value); }
        [Newtonsoft.Json.JsonIgnore]
        private IMotion? _MotionEntity;
        public string ControlName { get => _ControlName; set => Set(ref _ControlName, value); }
        private string _ControlName = string.Empty;

        public string PointDescription { get => _PointDescription; set => Set(ref _PointDescription, value); }
        private string _PointDescription = "位置：";

        public double Parameter { get => _Parameter; set => Set(ref _Parameter, value); }
        private double _Parameter;

        public string Unit { get => _Unit; set => Set(ref _Unit, value); }
        private string _Unit = "[mm]";

        public bool IsPosition { get => _IsPosition; set => Set(ref _IsPosition, value); }
        private bool _IsPosition = false;

        

        #endregion
    }
}
